//
//  BSSquareCell.m
//  BaiSi
//
//  Created by Sycamore on 16/4/29.
//  Copyright © 2016年 Sycamore. All rights reserved.
//

#import "BSSquareCell.h"
#import "BSSquareItem.h"
#import <UIImageView+WebCache.h>

@interface BSSquareCell ()

@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;


@end

@implementation BSSquareCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setItem:(BSSquareItem *)item
{
    _item = item;
    [_icon sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    _name.text = item.name;
    
}

@end
